package com.alex.service;

import com.alex.pojo.Book;

import java.util.List;

public interface BookService {

    boolean add(Book book);

    boolean delete(String isbn);

    boolean update(Book book);

    Book get(String isbn);

    List<Book> getAll();

    List<Book> searchByName(String keyword);

    boolean buyOneBook(String isbn, String username);
}
